package ThreadPool.chapter2;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description:TODO
 * @date 2022/12/20 20:56
 */
public abstract class Guard {

    public static final AtomicLong callCount = new AtomicLong();

    public abstract void method();

    @Override
    public String toString() {
        return getClass().getSimpleName() + ":" + callCount.get();
    }
}
